package com.yonyou.lexue.lexuemgr.entity;

import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.Table;

import com.fasterxml.jackson.annotation.JsonFormat;
/**
 * 评论实体
 * @author lanzhiming
 *
 */
@Entity
@Table(name = "lexue_comment")
public class Comment extends IdEntity{
	private String userId;
	private String userName;
	private String courseId;
	private Date createDate;
	private String commentContent;
//	评论标志 0 （已评论）、1（已追评）
	private Integer commentFlag;
	private Integer starNumber;
	
	public String getUserId() {
		return userId;
	}
	public void setUserId(String userId) {
		this.userId = userId;
	}
	public String getUserName() {
		return userName;
	}
	public void setUserName(String userName) {
		this.userName = userName;
	}
	public String getCourseId() {
		return courseId;
	}
	public void setCourseId(String courseId) {
		this.courseId = courseId;
	}
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+08:00")
	public Date getCreateDate() {
		return createDate;
	}
	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}
	public String getCommentContent() {
		return commentContent;
	}
	public void setCommentContent(String commentContent) {
		this.commentContent = commentContent;
	}
	public Integer getCommentFlag() {
		return commentFlag;
	}
	public void setCommentFlag(Integer commentFlag) {
		this.commentFlag = commentFlag;
	}
	public Integer getStarNumber() {
		return starNumber;
	}
	public void setStarNumber(Integer starNumber) {
		this.starNumber = starNumber;
	}
	
	
	
}
